using System;

namespace Ioc.Kernel.Exceptions
{
    public class DuplicateComponentIdException : ApplicationException
    {
        public DuplicateComponentIdException()
            : base("A component with same ID is already registered") {}

        public DuplicateComponentIdException(string componentID)
            : base(string.Format("A component with id {0} is already registered", componentID)) {}

        public DuplicateComponentIdException(string componentID, Exception innerException)
            : base(string.Format("A component with id {0} is already registered", componentID), innerException) {}
    }
}